<template>
  <div>
    <div v-if="to.path">
      <a :href="to.path"><slot></slot></a>
    </div>
    <div v-else>
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: "",
  data() {
    return {};
  },
  props: {
    to: {
      type: Object,
      default: () => {
        return {
          path: "",
        };
      },
    },
  },
  created() {},
  computed: {},
  methods: {},
};
</script>
<style lang='less'  scoped>

</style>
